import { request } from '@/utils/request'

export const message = {
  // 获取消息列表
  getList(params) {
    return request.post('/life/message/list', params)
  },
  
  // 标记消息为已读
  read(params) {
    return request.post('/life/message/read', params)
  },
  
  // 标记所有消息为已读
  readAll(params) {
    return request.post('/life/message/read/all', params)
  },
  
  // 获取未读消息数量
  getUnreadCount(params) {
    return request.post('/life/message/unread/count', params)
  }
}

export default message